#!/bin/bash
#Created by Jin at 2018/08/29.

# 在原部署环境中为了在.bash_profile中引入phantomjs (2018/09/20)
# . ~/.bash_profile

source /etc/profile 
cd /home/jinzc/bd_spider

time=$(date "+%Y-%m-%d %H:%M:%S")
echo "article_spider: start crawl 'article_spider' -- ${time}" >> crawl.log
nohup scrapy crawl article_spider --nolog 2>&1 &
echo "article_spider: finished" >> crawl.log
